Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify varint encoding #2645

Merged
merged 2 commits into from
Nov 9, 2023
Merged

Simplify varint encoding #2645

merged 2 commits into from
Nov 9, 2023

Conversation

eagr
Copy link
Contributor

@eagr eagr commented Nov 8, 2023

Nit. Simplify the varint code a bit. :))

@casey
Copy link
Collaborator

casey commented Nov 9, 2023

Nice, looks good to me! I switched it to use binary literals, since that makes more sense to me, and replaced & 0x7f | 0x80 with just | 0x80, since it's the same.

@casey casey enabled auto-merge (squash) November 9, 2023 00:28
@casey casey disabled auto-merge November 9, 2023 00:28
@casey casey enabled auto-merge (squash) November 9, 2023 00:28
@casey casey merged commit 48a6d6e into ordinals:master Nov 9, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants